<!DOCTYPE html>
<html lang="en">
<head>
    <div th:insert="commons.html"></div>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<div class="container-fluid" align="center">
    <div class="panel panel-primary" style="width:300px;">
        <div class="panel-body">
            <form id="menu_update">
                <div class="form-group">
                    <label for="name">节点名称</label>
                    <input type="text" class="form-control" name="text" id="name"
                           th:value="${menu.text}"  placeholder="请输入节点名称">
                    <div id="tips"></div>
                </div>
                <div class="form-group">
                    <label for="url">地址</label>
                    <input type="text" class="form-control" name="url" id="url" th:value="${menu.url}" >
                </div>
                <div class="form-group">
                    <label for="parentid">parentId</label>
                    <input type="text" class="form-control" name="parentid" id="parentid" th:value="${menu.parentid}" >
                </div>
                <div class="form-group">
                    <label for="perms">perms</label>
                    <input type="text" class="form-control" name="perms" id="perms" th:value="${menu.perms}" >
                </div>
                <div class="form-group">
                    <label for="icon">icon</label>
                    <input type="text" class="form-control" name="icon" id="icon" th:value="${menu.icon}" >
                </div>
                <div class="form-group">
                    <label >按钮</label>
                    <SELECT name="button" >
                        <option th:value="0" th:selected="${menu.button == 0}" >菜单</option>
                        <option th:value="1" th:selected="${menu.button == 1}" >按钮</option>
                    </SELECT>
                </div>
                <div class="form-group">
                    <label for="idd"></label>
                    <input type="hidden" class="form-control" name="id" id="idd" th:value="${menu.id}" >
                </div>
            </form>
        </div>
    </div>
</div>
</body>
</html>